﻿<%@ Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FrasesSimpsonsMvc.Models.Frases>>" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
	<% Html.RenderPartial("BasicHeadUserControl"); %>
</asp:Content>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">Frases de los Simpsons latino - Los matados</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
	<% Html.RenderPartial("SearchCleanUserControl"); %>
    	
    <div class="row-responsive hidden-phone">
		<ul class="breadcrumb">
			<li>
				<a href="<%= Url.Action("Index", "Home") %>">Home</a> <span class="divider">/</span>
			</li>
			<li class="active">Resultados de busqueda de "<%= ViewData["SearchQuery"] %>"</li>
		</ul>
	</div>

	<div class="row-responsive top-space">
	<% if (Model.Count() > 0) { %>    
		<% Html.RenderPartial("ListaFrasesUserControl", Model as IEnumerable<FrasesSimpsonsMvc.Models.Frases>); %>
	<% } else { %>
		<div class="no-results">
			<%= Html.ActionLink("¿Queres agregar una frase nueva?", "Add", "Frase") %><br />
			<img src="<%= VirtualPathUtility.ToAbsolute("~/Content/Images/sin-resultados.png") %>" alt="Doh! No hay resultados" />
			<p>No se encontraron resultados</p>
		</div>
	<% } %>
	</div>
</asp:Content>